package com.by.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.by.entity.Product;
import com.by.entity.Sku;
import com.by.service.SkuService;
import com.by.mapper.SkuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 16564
* @description 针对表【pms_sku(SKU表)】的数据库操作Service实现
* @createDate 2025-10-13 14:17:51
*/
@Service
public class SkuServiceImpl extends ServiceImpl<SkuMapper, Sku>
    implements SkuService{

    @Autowired
    private SkuMapper skuMapper;
    @Override
    public List<Sku> skuList(Long spuId) {
        List<Sku> list = skuMapper.selectList(new LambdaQueryWrapper<Sku>().eq(Sku::getSpuId, spuId));
        return list;
    }
}




